package de.toolschmied.jjas.client.cms.actions;


public enum HeadingType implements SelectableType {

	H1 ("Heading 1", "h1"),
	H2 ("Heading 2", "h2"),
	H3 ("Heading 3", "h3");
	
	private final String displayName;
	private final String elementName;
	private final String buttonImageURL;
	
	private HeadingType(String displayName, String htmlType) {
		this.displayName = displayName;
		this.elementName = htmlType;
		this.buttonImageURL = "images/" + htmlType + ".png";
	}

	@Override
	public String getButtonImageURL() {
		return buttonImageURL;
	}

	@Override
	public String getName() {
		return displayName;
	}

	public String getElementName() {
		return elementName;
	}

	@Override
	public String getTooltip() {
		return "Set the heading to " + getName();
	}
}
